package com.rain.lo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class MainController {

    @RequestMapping("main.html")
    public String main(@RequestParam(value = "uri",defaultValue = "user/list") String uri,
                       String title,
                       @RequestParam(value = "sid",defaultValue = "1")int sid,
                       Model model){
        model.addAttribute("uri",uri);
        model.addAttribute("title",title);
        model.addAttribute("sid",sid);
        return "main";
    }
}
